import java.util.Comparator;


public class heuristicComparator implements Comparator<State> {

	@Override
	public int compare(State s1, State s2) {
		if(s1.heuristic < s2.heuristic) {
			return -1;
		} else if(s1.heuristic > s2.heuristic) {
			return 1;
		} else {
		return 0;
		}
	}

}
